
<% form_tag do%>
<div id="item_title">
	損傷の程度を選択してください:
</div>
	<% if @position.material == "樹脂"%>
	<% if @order_item.damage_degree == nil%>
		<%= select_tag(:damage_degree, options_for_select({"塗膜のみ" => "塗膜のみ", "えぐれ" => "えぐれ"}))%>
	<%elsif @order_item.damage_degree == "へこみ５ｍｍ以下"%>
		<%= select_tag(:damage_degree, options_for_select({"塗膜のみ" => "塗膜のみ", "えぐれ" => "えぐれ"},"えぐれ"))%>
	<%else%>
		<%= select_tag(:damage_degree, options_for_select({"塗膜のみ" => "塗膜のみ", "えぐれ" => "えぐれ"},@order_item.damage_degree))%>
	<%end%>
	<%elsif @order_item.damage_degree != nil%>
		<%= select_tag(:damage_degree, options_for_select({"塗膜のみ" => "塗膜のみ", "へこみ５ｍｍ以下" => "へこみ５ｍｍ以下","へこみ５ｍｍ以上" => "へこみ５ｍｍ以上"},@order_item.damage_degree))%>
	<% else %>
		<%= select_tag(:damage_degree, options_for_select({"塗膜のみ" => "塗膜のみ", "へこみ５ｍｍ以下" => "へこみ５ｍｍ以下","へこみ５ｍｍ以上" => "へこみ５ｍｍ以上"}))%>
	<%end%>
<div id="item_title">
	縦:
</div>	
	<%= text_field_tag :area_y , "10", :disabled => true, :size => 4%> CM
<div id="item_title">
	横:
</div>	
	<%if @order_item.area_x != 0%>
	<%= text_field_tag :area_x, "#{@order_item.area_x}", :size => 4 %> CM
	<%else%>
	<%= text_field_tag :area_x, "", :size => 4 %> CM
	<%end%>
<div id="section_line"></div>
	<div id="back_forward">
	<a href="javascript:history.back(-1)"><img src="/images/btn_back_01.gif" class="back"></a>
	<%= image_submit_tag("btn_next_01.gif",:onclick => "return verify(this.form);")%>
	</div>
<%end%>

<script type="text/javascript">
	function verify(form) {
		if(form.area_x.value == "") {
			alert("横に数字を入力してください");
			form.area_x.focus();
			return false;
		}
		return true;
	}
</script>
